package com.example.mapper;
import com.example.pojo.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.annotations.Api;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 物品表 Mapper 接口
 * </p>
 *
 * @author wsl
 * @since 2022-04-11
 */
@Mapper
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {
//根据名称进行模糊查询
//    List<Goods> selectGoods(@Param("name") String name);

    List<Goods> selectGoods(Integer gs_type_id,Integer enabled,String name,Integer num, Integer pageNum, Integer pageSize);


    List<Goods> querygoods();

    int updateGoods(Goods goods);
}
